package com.example.blog.mapper;

import com.example.blog.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface BlogMapper {
    int addBlog(Blog blog);
    List<Blog> selectAll();
    Blog selectById(@Param("blogid") Integer blogid);
    int upBlog(Blog blog);
    void delBlog(@Param("blogid") Integer blogid);
}
